<template>
  <el-carousel class="carousel" :interval="5000" arrow="always">
    <el-carousel-item v-for="item in img_list" :key="item">
      <img :src="item" class="image" alt="轮播图" z-index="10">
    </el-carousel-item>
  </el-carousel>
</template>

<script>

export default {
  name: "Carousel",
  components: {

  },
  data() {
    return {
      img_list: [
        require("../assets/image1.jpeg"),
        require("../assets/image2.jpeg"),
        require("../assets/image3.jpeg"),
      ],
    };
  },
};
</script>


<style scoped> 

.el-carousel-item {
  width: 100%;
}

.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>